#ifndef CONEX_UTIL_IID_TIMESTAMP_H
#define CONEX_UTIL_IID_TIMESTAMP_H

#include <time.h>
#include <string>

namespace conex {
#define iid_type long long
	using namespace std;

	class IidTimestamp {
	public:
		IidTimestamp(iid_type iid = 0);
		iid_type GetTimeStamp();   // get Iid from now's date time 
		string GetIid();
		string GetCurrentTime(iid_type iid);
		tm GetDatetime(const iid_type &);   // return the date time from Iid
	private:
		iid_type m_Iid;
		tm* m_Tm;
		time_t m_t;
	};
}

#endif